const mongoose = require('mongoose');
const moment = require('moment');

const logsSchema = new mongoose.Schema({
    adminsId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'adminsModel'
    },
    time: {
        type: String,
        default: moment().format('YYYY-MM-DD HH:mm:ss')
    }
}, { versionKey: false });


const logsModel = mongoose.model('logsModel', logsSchema, 'logs');

module.exports.logsModel = logsModel;